#ifndef ECAPTURE_OPENSSL_1_1_0_A_KERN_H
#define ECAPTURE_OPENSSL_1_1_0_A_KERN_H

/* OPENSSL_VERSION_TEXT: OpenSSL 1.1.0l  10 Sep 2019 */
/* OPENSSL_VERSION_NUMBER: 269484239 */

// ssl_st->version
#define SSL_ST_VERSION 0x0

// ssl_st->session
#define SSL_ST_SESSION 0x178

// ssl_st->s3
#define SSL_ST_S3 0x90

// ssl_st->rbio
#define SSL_ST_RBIO 0x10

// ssl_st->wbio
#define SSL_ST_WBIO 0x18

// ssl_st->server
#define SSL_ST_SERVER 0x38

// ssl_session_st->master_key
#define SSL_SESSION_ST_MASTER_KEY 0x8

// ssl3_state_st->client_random
#define SSL3_STATE_ST_CLIENT_RANDOM 0xb0

// ssl_session_st->cipher
#define SSL_SESSION_ST_CIPHER 0xd8

// ssl_session_st->cipher_id
#define SSL_SESSION_ST_CIPHER_ID 0xe0

// ssl_cipher_st->id
#define SSL_CIPHER_ST_ID 0x10

// bio_st->num
#define BIO_ST_NUM 0x28

// openssl 1.1.0 does not support TLS 1.3, set 0 default
#define SSL_ST_HANDSHAKE_SECRET 0
#define SSL_ST_HANDSHAKE_TRAFFIC_HASH 0
#define SSL_ST_CLIENT_APP_TRAFFIC_SECRET 0
#define SSL_ST_SERVER_APP_TRAFFIC_SECRET 0
#define SSL_ST_EXPORTER_MASTER_SECRET 0

#include "openssl.h"
#include "openssl_masterkey.h"

#endif
